#ifndef UPDATES_H
#define UPDATES_H
#include "ado/stdafx.h"
#include <iostream>
#include <cstdarg>
#include <map>
#include <iterator>
#include "standard/DBConfig.h"
#include "Database.h"

class ADOLIB1_API  Updates : public Database
{
public:
    static Updates* init(void *db);
    Updates(void *db);
    Updates *setp(std::map<std::string, std::string> setstr);
    int update(const char *tokens, ...);
    ~Updates();
private:
    std::map<std::string, std::string> m_setstr;
    std::string m_classname;
    
    static Updates *_init;
    class CGarbo {public: ~CGarbo(){if (Updates::_init) delete Updates::_init;}};
    static CGarbo Garbo; 
};

#if defined(_MSC_VER)
extern "C"  __declspec(dllexport)  Updates * CreateObjectUpdates();
#endif

#endif
